export interface CanteenData {
  id: number
  name: string
  floor: string
  image: string
  description: string
  status: number
  createTime: string
  updateTime: string
}

export interface CanteenVo {
  id: number
  name: string
  floor: string
  image: string
  description: string
  status: number
  statusName: string
  createTime: string
  updateTime: string
}

export interface CanteenQueryParam {
  pageNo: number
  pageSize: number
  name?: string
  floor?: string
  status?: number
}

export interface CreateCanteenBean {
  name: string
  floor: string
  image: string
  description?: string
  status?: number
}

export interface UpdateCanteenBean {
  /** 食堂ID */
  id: number
  /** 食堂名称 */
  name?: string
  /** 楼层 */
  floor?: string
  /** 图片 */
  image?: string
  /** 描述 */
  description?: string
  /** 状态 */
  status?: number
}

// API 响应类型定义
export interface CanteenListResponse {
  code: number
  message: string
  data: {
    list: CanteenVo[]
    total: number
    pageNo: number
    pageSize: number
    pages: number
  }
}

export interface CanteenDetailResponse {
  code: number
  message: string
  data: CanteenVo
}

export interface CreateCanteenResponse {
  code: number
  message: string
  data: number
}

export interface UpdateCanteenResponse {
  code: number
  message: string
  data: string
}

export interface DeleteCanteenResponse {
  code: number
  message: string
  data: string
}

export interface BatchDeleteCanteenResponse {
  code: number
  message: string
  data: string
}

export interface UpdateCanteenStatusResponse {
  code: number
  message: string
  data: string
}

export type CanteenResponseData = ApiResponseData<CanteenData[]>